home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Vault: The Gold Collection
/
Software Vault - The Gold Collection (American Databankers) (1993).ISO
/
cdr35
/
ansi_d2.zip
/
ANSI-D2.PPE
(
.txt
)
< prev
next >
Wrap
PCBoard Programming Language Executable
|
1993-05-12
|
3KB
|
209 lines
;------------------------------------------------------------------------------
; .ss.
; `²²'
; .,sS$Ss,,s$ .,sS$$$Ss. .,sS$Ss,,s$ .ss. .sSs.
; .d$$²^°²$$$$'.d$P²°^^²$P'.d$$²^°²$$$$'.$$$' .$$$²Sb,.
; $$$' .$$$' $$$²Sçsµ²' .$$$' .$$$'.$$$' .$$$' `$$b.
; $$$b,,d$$$' ,$$$b,....,s$$$$b,,d$$$'.$$$;.,$$$' ;$$$
; `²S$$S²²S$$S²°²S$$$$S²°°²S$$$$$$',$$S²°²S$S'.sS$$$P²'
; .sS²°$$$²²°"' d²°'
; .$$² .$$'
; $$$.,d$$'
; `²S$$S²'
;------------------------------------------------------------------------------
; P.P.L.X. 2.OO (C)1996 - Lone Runner / AEGiS CoRP'96
;------------------------------------------------------------------------------
; PPE 1.OO (plain) - Analysis ON - Postprocessing ON
;------------------------------------------------------------------------------
Boolean BOOLEAN001
Boolean BOOLEAN002
Boolean BOOLEAN003
Integer INTEGER001
Integer INTEGER002
String STRING001
String STRING002
String STRING003
String STRING004
String STRING005
String STRING006
String STRING007
;------------------------------------------------------------------------------
INTEGER001 = 2
STRING003 = ""
BOOLEAN003 = 0
STRING007 = " "
STRING003 = GetToken()
While (STRING003 <> "") Do
If ((Mid(Upper(STRING003), 2, 8) == "ANSITIME") || (Mid(Upper(STRING003), 2, 2) == "AT")) Then
INTEGER001 = Mid(STRING003, InStr(STRING003, ":") + 1, 1)
If ((INTEGER001 < 1) || (INTEGER001 == "")) INTEGER001 = 2
ElseIf ((Mid(Upper(STRING003), 2, 7) == "RIPTIME") || (Mid(Upper(STRING003), 2, 2) == "RT")) Then
INTEGER002 = Mid(STRING003, InStr(STRING003, ":") + 1, 1)
If ((INTEGER002 < 1) || (INTEGER002 == "")) INTEGER002 = 2
Endif
STRING003 = GetToken()
EndWhile
STRING003 = ""
PrintLn "Testing your system capability..."
If (OnLocal()) Then
BOOLEAN001 = 1
Else
Print Chr(27) + " F"
Print STRING007 + STRING007 + STRING007
Print Chr(27) + "[6n"
Print STRING007 + STRING007 + STRING007 + STRING007
WaitFor Chr(27) + "[", BOOLEAN001, INTEGER001
Delay 2
STRING003 = Inkey()
If (BOOLEAN001) Then
While (STRING003 <> "") Do
STRING005 = STRING005 + STRING003
STRING003 = Inkey()
If (STRING003 == "") Then
Delay 2
STRING003 = Inkey()
Endif
EndWhile
Tokenize STRING005
STRING003 = GetToken()
If (((STRING003 >= 0) || (STRING003 <= 80)) && (Right(GetToken(), 1) == "R")) Then
BOOLEAN001 = 1
Goto LABEL001
Endif
BOOLEAN001 = 0
:LABEL001
STRING003 = ""
Endif
If (BOOLEAN001 && (INTEGER002 > 0)) Then
Print Chr(27) + "[!"
Print STRING007 + STRING007 + STRING007
WaitFor "RIPSCRIP", BOOLEAN002, INTEGER002
Endif
Endif
STRING002 = "Do you want graphics [Enter]="
STRING004 = ReadLine(PCBDat(), 257)
If (STRING004) Then
STRING006 = ReadLine(PCBDat(), 179)
FCreate 1, STRING006 + "ANSI-D.$$$", 2, 2
FPutLn 1, "The PPE shown in the subject, could not run properly because you"
FPutLn 1, "have your system configured to Default to Yes for the 'Do you want"
FPutLn 1, "graphics prompt'. You need to change that setting in to 'N' in"
FPutLn 1, "PCBSetup | Configuration Options | Configuration Switches."
FPutLn 1, ""
FClose 1
Message 0, "SYSOP", PPEPath() + PPEName() + ".PPE", "Your Configuration", "R", Date() + 2, 0, 0, STRING006 + "ANSI-D.$$$"
PrintLn
Print "Do you want graphics (Enter)=no"
End
Endif
If (BOOLEAN001) Then
If (BOOLEAN002) Then
STRING002 = STRING002 + "RIPscrip"
Else
STRING002 = STRING002 + "yes"
Endif
InputStr STRING002, STRING001, 7, 6, " ;QSR" + YesChar() + NoChar(), 410
Tokenize STRING001
:LABEL002
If (STRING003 == "") Goto LABEL003
GetToken STRING003
If (STRING003 == NoChar()) BOOLEAN003 = 1
Goto LABEL002
:LABEL003
If (!BOOLEAN003 && !BOOLEAN002) Then
STRING001 = YesChar() + ";" + STRING001
Else
STRING001 = "R" + ";" + STRING001
Endif
If ((STRING001 == "") && !BOOLEAN002) Then
STRING001 = YesChar()
ElseIf ((STRING001 == "") && BOOLEAN002) Then
STRING001 = "R"
Endif
Else
STRING002 = STRING002 + "no"
InputStr STRING002, STRING001, 7, 6, " ;QSR" + YesChar() + NoChar(), 410
If (STRING001 == "") STRING001 = NoChar()
Endif
KbdStuff STRING001
End
;------------------------------------------------------------------------------
;
; Usage report (before postprocessing)
;
; ■ Statements used :
;
; 2 End
; 26 Goto
; 32 Let
; 7 Print
; 2 PrintLn
; 20 If
; 1 FCreate
; 1 FClose
; 5 FPutLn
; 2 InputStr
; 2 Delay
; 2 Tokenize
; 1 GetToken
; 1 KbdStuff
; 2 WaitFor
; 1 Message
;
;
; ■ Functions used :
;
; 30 +
; 13 ==
; 2 <>
; 2 <
; 1 <=
; 1 >
; 1 >=
; 19 !
; 5 &&
; 5 ||
; 4 Upper()
; 6 Mid()
; 1 Right()
; 4 Chr()
; 2 InStr()
; 1 Date()
; 4 NoChar()
; 4 YesChar()
; 3 Inkey()
; 2 PCBDat()
; 1 PPEPath()
; 2 ReadLine()
; 1 OnLocal()
; 4 GetToken()
; 1 PPEName()
;
;------------------------------------------------------------------------------
;
; Analysis flags : d
;
; d - Access PCBOARD.DAT ■ 2
; Program gets the full pathname to PCBOARD.DAT, this may be usefull
; for many PPE so they can find various informations on the system
; (system paths, max number of lines in messages, ...) but it may also
; be a way to gather vital informations.
; ■ Search for : PCBDAT()
;
;------------------------------------------------------------------------------
;
; Postprocessing report
;
; 0 For/Next
; 2 While/EndWhile
; 13 If/Then or If/Then/Else
; 0 Select Case
;
;------------------------------------------------------------------------------
; AEGiS Corp - Break the routines, code against the machines!
;------------------------------------------------------------------------------